package practiceTest.chap03.work4;

import chap03.BubbleSort.ArrayBub;

import java.util.Random;

/**
 * Created by root on 2017/7/13.
 */
public class OddEvenSortApp {
    public static void main(String[] args){
        int maxSize = 10;
        Random random = new Random(47);
        ArrayBub arr = new ArrayBub(maxSize);
        for (int j=0;j<maxSize;j++) {
            long n = random.nextInt(maxSize-1);
            arr.insert(n);
        }
        arr.display();
        arr.oddEvenSort();
        arr.display();

    }
}
